Saving Movies
When you save a QuickTime movie, you have to give it a name and choose whether to make it self-contained. On your own computer, the movie probably plays equally well whether it's self-contained or not, and no matter what you name it. But these decisions have important consequences for the Web.
On your computer, a file may be allowed to have blank spaces or characters other than numbers and letters in its name. But a movie intended for the Web must have a name that doesn't confuse the Web server's file system, the viewer's file system, or any browsers.
For example, a movie named My Movie cannot be used on most Web servers, and a link to <A HREF="My Movie"> will fail on a variety of browsers and operating systems. One problem is the blank space, another is the lack of a file extension. Use MyMovie.mov instead.
As another example, Macintosh computers are not case-sensitive--you can name a file MyMovie.Mov ,and link to it with <A HREF="mymovie.mov"> . This works fine locally, but the link will fail on a Windows CD or a UNIX Web server.
Here are some useful rules for naming movies:
- Use a short name and a three-letter file extension separated by a period; for example: MyMovie.mov .
- Use lowercase .mov for the file extension.
- Use only one period ( . ) in the filename, the one before the file extension.
- Use only letters ( a-z ) and numbers ( 0-9 ) in the actual name.
- Never begin a filename with a number; use Movie1.mov rather than 1Movie.mov .
- Never include a blank space, a colon ( : ), a vertical bar ( | ), a forward slash ( / ), or a backslash ( \ ) in a filename.
- If you capitalize any letters in the filename, be sure all links to the movie use exactly the same capitalization. MyMovie.mov is not equal to mymovie.mov .
Making Movies Self-Contained
Generally speaking, you want to make your movies self-contained for Web delivery.
Remember that a movie is made of tracks. Tracks contain references to media samples such as sound or video. When you make a movie self-contained, any references to data in external files are resolved, and copies of the data are stored inside the movie file itself. What's more, the data samples are interleaved for smooth delivery.
If you don't make a movie self-contained, it stores references to the external files (the filenames and the relative path to the files). It also stores the byte offset into the files for each media sample. For such a movie to work, the data files cannot be edited, moved relative to the movie file, or renamed. Any directory names in the relative path must also remain unchanged.
For such a movie to work over the Web, there are additional requirements: the external files and any directories in the relative path must also exist on the Web server, they must have exactly the same names they had on the original computer, and these must be legal file and directory names in the Web server's file system.
There are so many ways to screw this up that it isn't even funny. As a general rule, you should just make the movie self-contained and not worry about it.
Still, there are times when you don't want to make a movie self-contained, as we'll describe in the next section. If you don't make a movie self-contained, you improve your chances of survival by doing the following:
- Make sure that the data files have only lowercase letters in their filenames; don't mix uppercase and lowercase.
- Put all the data files in one directory, and save the movie to the same directory when you create it; that way there are no directory names in the path to the files.
Making a movie self-contained is sometimes called "flattening" the movie. That's unfortunate, because flattening is really something more. Flattening a movie means that all references to media data are resolved and copies of the data are stored in the movie file. If the references are to data in external files, that does make the movie self-contained. But flattening also resolves internal references.
Remember, a track can contain multiple references to the same media data. What's more, the same data can be referenced by multiple tracks. If that data is already stored in the movie file, the movie is already self-contained. The references are to internal data.
When you flatten a movie, all references are resolved, and any referenced data is copied into the movie file. Internal references are resolved by making internal copies of the data. That makes the movie file larger, sometimes much larger, but it also optimizes the movie for smooth playback.
Note: Macintosh files can have both a data fork and a resource fork, but Windows and UNIX files don't have resource forks. In the ancient days of QuickTime 1.0, the header data for a movie was stored in the movie file's resource fork. Before you could put a movie on a UNIX Web server or a Windows CD, you had to move some things into the data fork. There was a utility program named FlattenMoov that did this, so using it was often called "flattening" a movie as well. QuickTime now stores the movie header in the data fork by default, so movies no longer need to be flattened in this old sense.
Currently, clicking the "Make movie self-contained" checkbox when you save a movie in QuickTime Player flattens the movie. Sometimes you want to make a movie self-contained without flattening it, which can be tricky.
Here's an example. Open any self-contained movie in QuickTime Player. Select All. Copy. Paste. Paste. Paste. Now when you play the movie, it repeats all the data three times. If you choose Save from the File menu, then look at the file size, you'll find that the movie file has grown by only a few bytes. That's because it makes three references to the same set of data. It's self-contained, but not flattened.
But if you choose Save As from the File menu to make a new copy of the movie, you'll see that making the file self-contained triples its original size, while saving normally (allowing dependencies) uses only 1K.
Since Save As creates a new file, your choice is to have no copies of the data (leaving the data in its original file) or to have three copies. Remember: QuickTime Player automatically flattens a movie when you choose "Make movie self-contained." Movies created using Save As never contain internal references.
Why would you want to make a movie with internal references? So you could repeat some of the data several times, even hundreds of times, without making a large file. Making the file self-contained isn't necessary, but it's convenient to have everything in one place.
If you want to make a self-contained movie with internal references, start with a self-contained movie. Edit the movie by copying and pasting within the movie, so you add only internal references, and save using the Save command, not the Save As command.
IMPORTANT
When you choose Save from the File menu, the movie is always saved normally (allowing dependencies). Movies saved using the Save command do not always fast start on the Internet. A movie without the Fast Start feature must download completely before it can play.
If you need to use internal references, use the Save command. If the movie must fast start on the Internet, use Save As.
There is currently no way to save a movie with internal references that is guaranteed to fast start. However, you can easily create a movie with internal references, save it using the Save command, then save a second version using Save As (allowing dependencies). The second version will be very small (typically 1K). The second version is guaranteed to be a Fast Start movie and can play over the Web, but you need to keep both versions together because the second version depends on data in the first version. Save them in the same folder and upload them to your Web server together.
And that's probably more than you really wanted to know about flattening. But it will come in handy later. Trust me.
Settings You Can Save
Some of the user settings that you can choose in QuickTime Player's Movie menu are saved along with the movie. You can use these settings to control the way a movie is displayed when you target the QuickTime Player, much the same way you use Plug-in Helper to control the way a movie is displayed by the QuickTime Plug-in.
These settings are part of the movie only if the movie is played in QuickTime Player:
- Loop--equivalent to setting LOOP="True" for the plug-in.
- Loop Back and Forth--equivalent to setting LOOP="Palindrome" for the plug-in.
- Play Selection Only--selecting part of the movie in QuickTime Player and choosing Play Selection Only is equivalent to setting STARTTIME and ENDTIME for the plug-in.
- Play All Frames--equivalent to setting PLAYEVERYFRAME="True" for the plug-in.
The following settings are part of the movie whether it's played in the QuickTime Plug-in or QuickTime Player:
- Half Size--equivalent to setting SCALE="0.5" for the plug-in.
- Double Size--equivalent to setting SCALE="2" for the plug-in. For movies compressed with the Sorenson or H.263 video codecs, this is a good way to increase the display size of the movie without increasing its data rate or file size.
- Fill Screen--this has no equivalent for the plug-in. When you choose it, QuickTime Player scales the movie up to fill your entire screen. However, choosing Fill Screen scales the movie up to fill your screen. Viewers with larger or smaller screens get a big movie, but not necessarily the size of their full screen.
You can guarantee a large-screen movie, and still be confident it will fit on almost any viewer's screen, by setting your screen resolution to 640x480, choosing Fill Screen, and saving the movie. For an example of a full-screen movie launched from a Web page, point your browser at BigMovie.htm in the Special Delivery folder of the CD.
The Half Size, Double Size, and Fill Screen settings also affect movie playback in the plug-in, but the plug-in gets its display area from the browser, so be sure to allocate the right amount of space in the HEIGHT and WIDTH parameters.
Tip: To make a QuickTime movie autoplay even when it's launched in QuickTime Player (equivalent to AUTOPLAY="True" for the plug-in), open the Info window, choose Auto Play from the right pop-up menu, and click the checkbox. This setting is saved with the movie.

|